<template>
    <div class="theme-showcase">
        <div class="showcase-header">
            <h1>淡紫色与蓝色主题展示</h1>
            <p>全新的菜单设计和主题样式</p>
        </div>

        <div class="showcase-grid">
            <!-- 色彩展示 -->
            <div class="color-palette">
                <h3>主题色彩</h3>
                <div class="color-swatches">
                    <div class="color-swatch primary-purple">
                        <span>主紫色</span>
                        <code>#8B7ED8</code>
                    </div>
                    <div class="color-swatch secondary-blue">
                        <span>辅助蓝色</span>
                        <code>#4A90E2</code>
                    </div>
                    <div class="color-swatch gradient-primary">
                        <span>渐变组合</span>
                        <code>渐变效果</code>
                    </div>
                </div>
            </div>

            <!-- 组件展示 -->
            <div class="component-showcase">
                <h3>组件样式</h3>
                <div class="components">
                    <button class="theme-button">主题按钮</button>
                    <input class="theme-input" placeholder="主题输入框" />
                    <div class="theme-card">
                        <h4>主题卡片</h4>
                        <p>这是一个使用新主题样式的卡片组件</p>
                    </div>
                </div>
            </div>

            <!-- 菜单效果展示 -->
            <div class="menu-showcase">
                <h3>菜单效果</h3>
                <div class="menu-preview">
                    <div class="menu-item active">
                        <i class="el-icon-house"></i>
                        <span>系统首页</span>
                    </div>
                    <div class="menu-item">
                        <i class="el-icon-user"></i>
                        <span>权限管理</span>
                    </div>
                    <div class="menu-item">
                        <i class="el-icon-setting"></i>
                        <span>组织管理</span>
                    </div>
                </div>
            </div>

            <!-- 统计卡片展示 -->
            <div class="stats-showcase">
                <h3>统计卡片</h3>
                <div class="stats-grid">
                    <div class="stat-card-demo">
                        <div class="stat-icon-demo primary">
                            <i class="el-icon-user"></i>
                        </div>
                        <div class="stat-content-demo">
                            <h4>总畜牧数</h4>
                            <p class="stat-number-demo">1,248</p>
                            <p class="stat-trend-demo">+5.2% 较上月</p>
                        </div>
                    </div>
                    <div class="stat-card-demo">
                        <div class="stat-icon-demo secondary">
                            <i class="el-icon-trend-charts"></i>
                        </div>
                        <div class="stat-content-demo">
                            <h4>育种成功率</h4>
                            <p class="stat-number-demo">87.3%</p>
                            <p class="stat-trend-demo">+2.1% 较上月</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 特色功能 -->
        <div class="features-section">
            <h2>主题特色功能</h2>
            <div class="features-grid">
                <div class="feature-item">
                    <div class="feature-icon">
                        <i class="el-icon-magic-stick"></i>
                    </div>
                    <h4>渐变背景</h4>
                    <p>使用淡紫色到蓝色的渐变背景，营造现代感</p>
                </div>
                <div class="feature-item">
                    <div class="feature-icon">
                        <i class="el-icon-view"></i>
                    </div>
                    <h4>悬停效果</h4>
                    <p>丰富的悬停动画和过渡效果，提升用户体验</p>
                </div>
                <div class="feature-item">
                    <div class="feature-icon">
                        <i class="el-icon-moon"></i>
                    </div>
                    <h4>暗色支持</h4>
                    <p>自动适配系统暗色模式，保护用户视力</p>
                </div>
                <div class="feature-item">
                    <div class="feature-icon">
                        <i class="el-icon-mobile"></i>
                    </div>
                    <h4>响应式设计</h4>
                    <p>完美适配各种屏幕尺寸，移动端友好</p>
                </div>
            </div>
        </div>
    </div>
</template>

<script setup lang="ts">
// 主题展示组件
</script>

<style scoped>
.theme-showcase {
    padding: 40px;
    background: var(--bg-primary);
    min-height: 100vh;
}

.showcase-header {
    text-align: center;
    margin-bottom: 40px;
}

.showcase-header h1 {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.showcase-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.color-palette,
.component-showcase,
.menu-showcase,
.stats-showcase {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
}

.color-palette h3,
.component-showcase h3,
.menu-showcase h3,
.stats-showcase h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.color-swatches {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-swatch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
}

.color-swatch.primary-purple {
    background: var(--primary-purple);
}

.color-swatch.secondary-blue {
    background: var(--secondary-blue);
}

.color-swatch.gradient-primary {
    background: var(--gradient-primary);
}

.color-swatch code {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.components {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-item:hover {
    background: var(--hover-bg);
    transform: translateX(4px);
}

.menu-item.active {
    background: var(--active-bg);
    color: var(--primary-purple);
    border-left: 4px solid var(--primary-purple);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card-demo {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.stat-icon-demo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.stat-icon-demo.primary {
    background: var(--gradient-primary);
}

.stat-icon-demo.secondary {
    background: var(--gradient-secondary);
}

.stat-content-demo h4 {
    font-size: 12px;
    color: var(--text-light);
    margin: 0 0 4px 0;
}

.stat-number-demo {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-trend-demo {
    font-size: 10px;
    color: var(--success-color);
    margin: 0;
}

.features-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
}

.features-section h2 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 24px;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-purple);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 24px;
}

.feature-item h4 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .theme-showcase {
        padding: 20px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
</style>


